package com.lovo.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.*;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class StudentBean {
    private Long id;
    @NotBlank
    private String name;
    @NotNull
    @Min(15)
    @Max(50)
    private Integer age;
    private String gender;
}
